package UI;
import java.awt.EventQueue;

import javax.swing.JFrame;

import java.awt.GridBagLayout;

import javax.swing.JToggleButton;

import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.AbstractAction;

import java.awt.event.ActionEvent;

import javax.swing.Action;

import java.awt.event.ActionListener;
import javax.swing.JButton;

public class Caffe_OrderFrame {
	
	private JFrame Caffe_Order_frame; 
	private final Action action = new SwingAction();
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Caffe_OrderFrame of = new Caffe_OrderFrame();					
					of.Caffe_Order_frame.setVisible(true);
					
					Caffe_Order_viewList.main(null);
					
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Caffe_OrderFrame() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		Caffe_Order_frame = new JFrame();
		Caffe_Order_frame.setBounds(100,100,800,450);
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
		gridBagLayout.rowHeights = new int[]{23, 60, 23, 60, 23, 60, 23, 60, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		Caffe_Order_frame.getContentPane().setLayout(gridBagLayout);
		
		JToggleButton tglbtnNewToggleButton = new JToggleButton("New toggle button");
		tglbtnNewToggleButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				Caffe_MenuList.main(null);
			}
		});
		GridBagConstraints gbc_tglbtnNewToggleButton = new GridBagConstraints();
		gbc_tglbtnNewToggleButton.fill = GridBagConstraints.BOTH;
		gbc_tglbtnNewToggleButton.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton.gridx = 0;
		gbc_tglbtnNewToggleButton.gridy = 1;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton, gbc_tglbtnNewToggleButton);
		
		
		JToggleButton tglbtnNewToggleButton_4 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_4 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_4.fill = GridBagConstraints.VERTICAL;
		gbc_tglbtnNewToggleButton_4.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_4.gridx = 3;
		gbc_tglbtnNewToggleButton_4.gridy = 1;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_4, gbc_tglbtnNewToggleButton_4);
		
		JToggleButton tglbtnNewToggleButton_2 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_2 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_2.fill = GridBagConstraints.VERTICAL;
		gbc_tglbtnNewToggleButton_2.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_2.gridx = 0;
		gbc_tglbtnNewToggleButton_2.gridy = 3;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_2, gbc_tglbtnNewToggleButton_2);
		
		JToggleButton tglbtnNewToggleButton_5 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_5 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_5.fill = GridBagConstraints.BOTH;
		gbc_tglbtnNewToggleButton_5.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_5.gridx = 3;
		gbc_tglbtnNewToggleButton_5.gridy = 3;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_5, gbc_tglbtnNewToggleButton_5);
		
		JToggleButton tglbtnNewToggleButton_3 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_3 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_3.fill = GridBagConstraints.VERTICAL;
		gbc_tglbtnNewToggleButton_3.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_3.gridx = 0;
		gbc_tglbtnNewToggleButton_3.gridy = 5;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_3, gbc_tglbtnNewToggleButton_3);
		
		JToggleButton tglbtnNewToggleButton_6 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_6 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_6.fill = GridBagConstraints.VERTICAL;
		gbc_tglbtnNewToggleButton_6.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_6.gridx = 3;
		gbc_tglbtnNewToggleButton_6.gridy = 5;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_6, gbc_tglbtnNewToggleButton_6);
		
		JToggleButton tglbtnNewToggleButton_1 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_1 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_1.fill = GridBagConstraints.VERTICAL;
		gbc_tglbtnNewToggleButton_1.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_1.gridx = 0;
		gbc_tglbtnNewToggleButton_1.gridy = 7;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_1, gbc_tglbtnNewToggleButton_1);
		
		JToggleButton tglbtnNewToggleButton_7 = new JToggleButton("New toggle button");
		GridBagConstraints gbc_tglbtnNewToggleButton_7 = new GridBagConstraints();
		gbc_tglbtnNewToggleButton_7.fill = GridBagConstraints.VERTICAL;
		gbc_tglbtnNewToggleButton_7.insets = new Insets(0, 0, 5, 5);
		gbc_tglbtnNewToggleButton_7.gridx = 3;
		gbc_tglbtnNewToggleButton_7.gridy = 7;
		Caffe_Order_frame.getContentPane().add(tglbtnNewToggleButton_7, gbc_tglbtnNewToggleButton_7);
	}

	private class SwingAction extends AbstractAction {
		public SwingAction() {
			putValue(NAME, "SwingAction");
			putValue(SHORT_DESCRIPTION, "Some short description");
		}
		public void actionPerformed(ActionEvent e) {
		}
	}
}
